﻿<%@ Page Title="" Language="C#" MasterPageFile=~/Views/Shared/SiteWithControlAccess.Master" Inherits="System.Web.Mvc.ViewPage<IQueryable<ProjetoComperio.Framework.Web.Logging.ExceptionLogging>>" %>
<%@ Import Namespace="ProjetoComperio.Framework.Web.Security.UrlEncrypt" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <h2>
        Exceções</h2>
    <%= Html.Grid(Model as IQueryable<global::ProjetoComperio.Framework.Web.Logging.ExceptionLogging>).Columns(
           column => 
           {
            column.For(x => x.URL);
            column.For(x => x.TargetSite);   
            column.For(x => x.Message);
            column.For(x => x.Date);
            column.For(x =>  Html.ActionLink("Ver", "Visualize", new { id = URLEncrypt.EncryptToString(x.ExceptionLoggingID.ToString()) })
               ).DoNotEncode().Attributes(x => new Hash(style => "font-weight:bold"));
           }).Attributes(Style =>  "width:100%").Empty("Não existem exceções")
    %>
    <br />
    <br />
</asp:Content>
<asp:Content ID="Content3" ContentPlaceHolderID="head" runat="server">
</asp:Content>
